/* 
* Copyright (c) 2012 XXX Inc. All rights reserved.
* Author : XXX.
* Brief  : 
* Histroy: create 2012-9-18
*/

#ifndef _E__WORKSPACE_MAINWORK_CONFIGMASTER_CONFIGTCPCONN__H_//NOLINT
#define _E__WORKSPACE_MAINWORK_CONFIGMASTER_CONFIGTCPCONN__H_//NOLINT

#include "Poco/Net/TCPServer.h"
#include "Poco/Net/TCPServerConnection.h"
#include "Poco/Net/TCPServerConnectionFactory.h"
#include "Poco/Net/TCPServerParams.h"
#include "Poco/Net/StreamSocket.h"
#include "Poco/Net/ServerSocket.h"

using Poco::Net::TCPServer;
using Poco::Net::TCPServerConnection;
using Poco::Net::TCPServerConnectionFactory;
using Poco::Net::TCPServerConnectionFactoryImpl;
using Poco::Net::TCPServerParams;
using Poco::Net::StreamSocket;
using Poco::Net::ServerSocket;
using Poco::Net::SocketAddress;

#include "ConfigSlice.h"

namespace Config{
class ConfigMasterI;



class ConfigTcpConnection : public TCPServerConnection
{
  public:
	ConfigTcpConnection(const StreamSocket& s);

	void run();

};

} //namespace Config
#endif //_E__WORKSPACE_MAINWORK_CONFIGMASTER_CONFIGTCPSERVER__H_//NOLINT